﻿<%@ Page Language="C#"  AutoEventWireup="true" Inherits="WorkFlow_WFProcess_Index" EnableViewState="false"  Codebehind="Index.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>流程处理</title>
    <base target="_self" />
    <meta http-equiv="Pragma" content="no-cache" />
   <meta http-equiv="Cache-Control" content="no-cache"/>
   <meta http-equiv="Expires" content="0"/>  
   <script language="javascript" type="text/javascript" src="js/Win.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <input id="HidWFOperationType" runat="server" type="hidden" style="width:0px" />
    <input id="HidEmployeeID" runat="server" type="hidden" style="width:0px" />
    <input id="HidBillCode" runat="server" type="hidden" style="width:0px" />
    <input id="HidBuDataID" runat="server" type="hidden" style="width:0px" />
    <input id="HidDependDataID" runat="server" type="hidden" style="width:0px" />
    <input id="HidEmployeeIDFilter" runat="server" type="hidden" style="width:0px" />
    <input id="HidJobVar" runat="server" type="hidden" style="width:0px" />
    <input id="HidTranActTemplateID" runat="server" type="hidden" style="width:0px" />

        <asp:Button ID="btnRedirect" runat="server"　style="display:none" Width="0px"  Text="自动跳转" OnClick="btnRedirect_Click" />        
        <asp:Button ID="btnExit" runat="server" style="display:none" OnClientClick="OperationCancel();" />
        </form>  
    <script language="javascript" type="text/javascript">
        var WFParams = window.dialogArguments;
        
        document.getElementById("<%=HidWFOperationType.ClientID%>").value = WFParams.WFOperationType;
        document.getElementById("<%=HidEmployeeID.ClientID%>").value = WFParams.EmployeeID;
        document.getElementById("<%=HidBillCode.ClientID%>").value = WFParams.BillCode;
        document.getElementById("<%=HidBuDataID.ClientID%>").value = WFParams.BuDataArr;
        document.getElementById("<%=HidEmployeeIDFilter.ClientID%>").value = WFParams.EmployeeCollection;
        document.getElementById("<%=HidJobVar.ClientID%>").value = WFParams.JobVarArr;
        document.getElementById("<%=HidTranActTemplateID.ClientID%>").value = WFParams.TranActTemplateID;

        document.getElementById("<%=btnRedirect.ClientID%>").click();
        
        if(window.returnValue == null)
        {
            window.returnValue=GetCancelParam();
        }
    </script>
</body>
</html>

